package cn.sxt.logistics.service.impl;

import cn.sxt.logistics.pojo.BaseData;
import cn.sxt.logistics.mapper.BaseDataMapper;
import cn.sxt.logistics.service.IBaseDataService;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 基础数据表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2020-06-17
 */
@Service
public class BaseDataServiceImpl extends ServiceImpl<BaseDataMapper, BaseData> implements IBaseDataService {

    @Override
    public IPage<Map<String, Object>> selectBaseDatas(IPage<Map<String, Object>> page, Wrapper wrapper) {
        return baseMapper.selectBaseDatas(page,wrapper);
    }

    @Override
    public List<BaseData> selectBaseDatasByParentName(String parentName) {
        return baseMapper.selectBaseDatasByParentName(parentName);
    }
}
